<div class="modal-dialog" role="document" style="width:900px;">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="exampleModalLabel">行程明细 - <small>{$listData.air_code}</small></h4>
        </div>
        <div class="table-responsive">
            <table class="table table-striped table-hover" id="tableData">
                <thead>
                <tr>
                    <th>序号</th>
                    <th>客票号</th>
                    <th>旅客名称</th>
                    <th>最低赏金</th>
                    <th>联系方式</th>
                    <th>行程描述</th>
                    <th>状态</th>
                    <th>发布用户</th>
                    <th>发布时间</th>
                </tr>
                </thead>
                <tbody>
                <empty name="listData">
                    <tr>
                        <td colspan="11">未找到相关行程</td>
                    </tr>
                </empty>
                <foreach name="listData.trip" item="data">
                    <tr>
                        <td>{$key|getLineNum=$nowPage,$pageSize}</td>
                        <td>{$data.ticket_id}</td>
                        <td>{$data.real_name}</td>
                        <td>{$data.reward_min|number_format=2}</td>
                        <td>
                            <if condition="$data['contact']['tel']"> <p>手机：{$data.contact.tel}</p></if>
                            <if condition="$data['contact']['wx']"> <p>微信：{$data.contact.wx}</p></if>
                        </td>
                        <td class="destination_content" title="{$data.real_name} - {$data.ticket_id}" data-toggle="popover" data-content="{$data.description|default='暂无行程描述'}">{$data.description|msubstr=###,0,10,"utf-8",true}</td>
                        <td class="status_content" <if condition="$data['status'] eq 2">title="{$data.real_name} - {$data.ticket_id}" data-toggle="popover" data-content="{$data.remark|default='其它'}"</if>>
                            <switch name="data.status">
                                <case value="0"><span class="label label-info">审核中</span></case>
                                <case value="1"><span class="label label-success">审核通过</span></case>
                                <case value="2"><span class="label label-danger">审核未通过</span></case>
                                <case value="3"><span class="label label-primary">已结束</span></case>
                                <case value="4"><span class="label label-warning">已删除</span></case>
                                <default /><span class="label label-default">未知</span>
                            </switch>
                        </td>
                        <td>{$data.user.real_name}</td>
                        <td>{$data.add_time|date="Y-m-d H:i",###}</td>
                    </tr>
                </foreach>
                </tbody>
            </table>
        </div>
        <div class="modal-footer">
            <button type="button" data-dismiss="modal" class="btn btn-default">取消</button>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $(".destination_content").popover({
            trigger: "hover",
            container: "body",
            placement: "right"
        });
        $(".status_content").popover({
            trigger: "hover",
            container: "body",
            placement: "right"
        });
    });
</script>